//
//(C) Copyright 2011 HongKong Airline.,Ltd. 
//
/**
 * commodityModel
 *
 * 项目名称:代购系统
 *
 * @author Mengxiangliang
 *
 * 功能描述:
 * 
 * 历史版本:2013-01-04 v1.0.0 Mengxiangliang  创建:
 * 
 */
package com.gamutsoft.amb.commodity.model;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "COMMODITY")
public class Commodity implements java.io.Serializable {

	/**
	 * 
	 */
	private Long id ;
	/**
	 * 
	 */
	private String url ;
	/**
	 * 
	 */
	private String domainname ;
	/**
	 * 
	 */
	private String name ;
	/**
	 * 
	 */
	private String shopname ;
	/**
	 * 
	 */
	private BigDecimal price ;
	/**
	 * 
	 */
	private Long buycount ;
	/**
	 * 
	 */
	private BigDecimal freight ;
	/**
	 * 
	 */
	private String remark ;
	/**
	 * 
	 */
	private String statusnode ;
	/**
	 * 
	 */
	private String imgurl ;
	/**
	 * 
	 */
	private Long orderforminfoid ;
	/**
	 * 
	 */
	private String packagestatus ;
	/**
	 * 
	 */
	private Long packageid ;
	
	private String createTime;
	
	private String status;

/** default constructor */
	public Commodity() {
	}

	/** minimal constructor */
   public Commodity(Long id) {
             this.id = id;
                                                                                    	
 } 
	

    /**
	 * 获取
	 * @return
	 */
    @Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false, scale = 0)
	public Long getId() {
		return this.id;
	}
	
	/**
	 * 设置
	 * @param id
	 */	
	public void setId(Long id) {
		this.id = id;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "url", length = 256)
	public String getUrl() {
		return url;
	}
	
	/**
	 * 设置
	 * @param url
	 */	
	public void setUrl(String url) {
		this.url = url;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "domainName", length = 100)
	public String getDomainname() {
		return domainname;
	}
	
	/**
	 * 设置
	 * @param domainname
	 */	
	public void setDomainname(String domainname) {
		this.domainname = domainname;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "name", length = 128)
	public String getName() {
		return name;
	}
	
	/**
	 * 设置
	 * @param name
	 */	
	public void setName(String name) {
		this.name = name;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "shopName", length = 100)
	public String getShopname() {
		return shopname;
	}
	
	/**
	 * 设置
	 * @param shopname
	 */	
	public void setShopname(String shopname) {
		this.shopname = shopname;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "Price", length = 10)
	public BigDecimal getPrice() {
		return price;
	}
	
	/**
	 * 设置
	 * @param price
	 */	
	public void setPrice(BigDecimal price) {
		this.price = price;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "buyCount", length = 11)
	public Long getBuycount() {
		return buycount;
	}
	
	/**
	 * 设置
	 * @param buycount
	 */	
	public void setBuycount(Long buycount) {
		this.buycount = buycount;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "Freight", length = 10)
	public BigDecimal getFreight() {
		return freight;
	}
	
	/**
	 * 设置
	 * @param freight
	 */	
	public void setFreight(BigDecimal freight) {
		this.freight = freight;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "remark", length = 256)
	public String getRemark() {
		return remark;
	}
	
	/**
	 * 设置
	 * @param remark
	 */	
	public void setRemark(String remark) {
		this.remark = remark;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "statusNode", length = 10)
	public String getStatusnode() {
		return statusnode;
	}
	
	/**
	 * 设置
	 * @param statusnode
	 */	
	public void setStatusnode(String statusnode) {
		this.statusnode = statusnode;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "imgUrl", length = 256)
	public String getImgurl() {
		return imgurl;
	}
	
	/**
	 * 设置
	 * @param imgurl
	 */	
	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "orderFormInfoId", length = 32)
	public Long getOrderforminfoid() {
		return orderforminfoid;
	}
	
	/**
	 * 设置
	 * @param orderforminfoid
	 */	
	public void setOrderforminfoid(Long orderforminfoid) {
		this.orderforminfoid = orderforminfoid;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "packageStatus", length = 3)
	public String getPackagestatus() {
		return packagestatus;
	}
	
	/**
	 * 设置
	 * @param packagestatus
	 */	
	public void setPackagestatus(String packagestatus) {
		this.packagestatus = packagestatus;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "packageId", length = 32)
	public Long getPackageid() {
		return packageid;
	}
	
	/**
	 * 设置
	 * @param packageid
	 */	
	public void setPackageid(Long packageid) {
		this.packageid = packageid;
	}
	/**
	 * 获取
	 * @return
	 */
	@Column(name = "create_time", length = 19)
	public String getCreateTime() {
		return createTime;
	}
	
	/**
	 * 设置
	 * @param packageid
	 */	
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取
	 * @return
	 */
	@Column(name = "status", length = 3)
	public String getStatus() {
		return status;
	}
	
	/**
	 * 设置
	 * @param packageid
	 */	
	public void setStatus(String status) {
		this.status = status;
	}
}